package com.lining.orangeservice.service;

import com.lining.orangeservice.entity.dto.request.LoginRequest;
import com.lining.orangeservice.entity.dto.LoginResponse;
import com.lining.orangeservice.entity.dto.request.RegisterRequest;

import com.lining.orangeservice.entity.po.User;

public interface AuthService {
    
    /**
     * 用户登录
     */
    LoginResponse login(LoginRequest loginRequest);
    
    /**
     * 用户注册
     */
    void register(RegisterRequest registerRequest);
    
    /**
     * 用户登出
     */
    void logout();
    
    /**
     * 刷新Token
     */
    LoginResponse refreshToken(String refreshToken);
    
    /**
     * 获取当前登录用户信息
     */
    User getCurrentUser();
}